package com.app.mapper;

import com.app.entity.po.HuibenHomework;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 作业表 Mapper 接口
 * </p>
 *
 * @author lizi
 * @since 2025-07-29
 */
public interface HuibenHomeworkMapper extends BaseMapper<HuibenHomework> {


    /**
 * 批量统计每个作业的完成人数
 * @param homeworkIds 作业ID列表
 * @return List<Map<String, Object>>，每个map包含homeworkId和finished
 */

    /**
     * 批量查作业基本信息
     */
    List<HuibenHomework> selectByHomeworkIds(@Param("homeworkIds") List<Long> homeworkIds);
}
